<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://xmlns.jcp.org/jsf/core">
    <h:head>
        <title>Predmet</title>
        <h:outputStylesheet library="css" name="styles.css"/> 
    </h:head>
    <h:body>
        <ui:include src="adminMenuBar.xhtml"/>
        <h:form>
            <p:panel header="Predmeti" styleClass="headerPanel"> 
                <h:panelGrid columns="2">
                    <h:outputLabel value="Naziv:"/>
                    <p:inputText value="#{adminBean.selectedP.naziv}"/>
                    <h:outputLabel value="Sifra:"/>
                    <p:inputText value="#{adminBean.selectedP.sifra}"/>
                    <h:outputLabel value="Status:"/>
                    <p:selectOneMenu value="#{adminBean.selectedP.tip}">
                        <f:selectItems value="#{adminBean.typeList}"/>
                    </p:selectOneMenu>
                    <h:outputLabel value="ESPB:"/>
                    <p:inputText  value="#{adminBean.selectedP.semestar}"/>
                    <h:outputLabel value="ESPB:"/>
                    <p:inputText  value="#{adminBean.selectedP.espb}"/>
                    <h:outputLabel value="Fond casova: "/>
                    <p:inputMask  value="#{adminBean.selectedP.fondCasova}" mask="9+9+9"/>
                </h:panelGrid>
                <h:outputLabel value="Uslov:"/>
                <br/><br/>
                <p:editor width="600" value="#{adminBean.selectedP.propozicije}"/>
                <br/><br/>

                <h:outputLabel value="Informacije:"/>
                <br/><br/>
                <p:editor width="600" value="#{adminBean.selectedP.informacije}"/>
                <br/><br/>

                <h:outputLabel value="Cilj predmeta:"/>
                <br/>  <br/>
                <p:editor width="600" />

                <br/>
                <p:commandButton value="Sacuvaj" action="#{adminBean.updateCourse()}" ajax="false"/>
            </p:panel>
        </h:form>
    </h:body>
</html>
